import Vue from "vue";
import Router from "vue-router";
import layout from "./components/layout.vue";
Vue.use(Router);
export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      component: layout,
      children: [
        {
          path: "/",
          name: "drag-demo",
          component: () => import("@/views/Drag.vue")
        },
		{
          path: "/divdrag",
          name: "divdrag",
          component: () => import("@/views/DivDrag.vue")
        },
		{
          path: "/testwebsocket",
          name: "testwebsocket",
          component: () => import("@/views/TestWebSocket.vue")
        },
		{
          path: "/MyCustomDrag",
          name: "MyCustomDrag",
          component: () => import("@/views/MyCustomDrag.vue")
        },
		{
          path: "/testdlg",
          name: "testdlg",
          component: () => import("@/testdlg/parent.vue")
        },
		{
          path: "/prevView",
          name: "prevView",
          component: () => import("@/prevView/index.vue")
        },
		{
          path: "/testsvg",
          name: "testsvg",
          component: () => import("@/views/TestSvg.vue")
        },
		{
          path: "/MyCustomSvgDrag",
          name: "MyCustomSvgDrag",
          component: () => import("@/views/MyCustomSvgDrag.vue")
        },
      ]
    }
  ]
});